package dnuifood_cjy.dnuifood_16110100529.service;

import dnuifood_cjy.dnuifood_16110100529.bean.GetCollected;
import dnuifood_cjy.dnuifood_16110100529.bean.ResultBean;
import dnuifood_cjy.dnuifood_16110100529.bean.UserBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
     @GET("userLogin.do")
     Call<UserBean>doLogin(
             @Query("username") String username,
             @Query("userpass") String password);

     @GET("userRegister.do")
     Call<ResultBean>doRegist(
             @Query("username") String username,
             @Query("userpass") String password,
             @Query("mobilenum") String phonenumber,
             @Query("addredd") String addredd,
             @Query("comment") String comment
     );

     @GET("getAllUserCollection.do")
     Call<List<GetCollected>>getAllUserCollection(
             @Query("user_id") String user_id,
             @Query("flag") String flag
     );
     @GET("userCollectShop.do")
     Call<ResultBean> userCollectShop(
             @Query("user_id") String user_id,
             @Query("shop_id") String shop_id
     );
     @GET("userCollectFood.do")
     Call<ResultBean>userCollectFood(
             @Query("user_id") String user_id,
             @Query("food_id") String food_id
     );
}
